<html>
<head></head>
<body>
<H1>Method use Demo Page!</H1>

<?php 
include 'phpMethods.php';
$userName ="acc6";
$userPassHash ="pss6";
//using view my schedule method
echo "<h3>shift workers must be able to view thier schedules</h3><br>In this case Harleen's Schedule<br>";
$testArray = viewMySchedule($userName,$userPassHash);
//viewMySchedule($userName,$userPassHash);
for($i=0;$i<count($testArray);$i++){
echo "<br>".$testArray[$i] ;
if($i==3){
echo "<br>";
}
}
echo "<h3>Shift workers can release a shift</h3><br>";
$shiftNotDesired =json_encode(array('RoleID' => 1,'DateID'=>1
));
releaseShift($userName, $userPassHash, $shiftNotDesired);



echo "<h3>Shift workers can Accepted a released shift</h3><br>";
echo "<h3>Shift workers can Check Released shifts</h3><br>";
displayShiftsOffered($userName,$userPassHash);



?>
</body>
</html>